
def is_shuixianhua(number):
    number_temp = list(number)
    a = int(number_temp[0])
    b = int(number_temp[1])
    c = int(number_temp[2])
    number_panduan = int(number)
    if number_panduan == a**3 + b**3 + c**3:
        result = True
    else:
        result = False
    return result

number_input = (input("请输入一个三位数字："))
a = is_shuixianhua(number_input)

if a == True:
    print("是水仙花数")
else:
    print("不是水仙花")


"
 
for x in range(1,20):
for y in range(1,33):
z = 100 - x - y if x*5+y*3+z/3 == 100:
print(x,y,z)